package com.mazaiting.manager.convert;

import com.mazaiting.manager.domain.entity.SysOauthClient;
import com.mazaiting.manager.dto.SysOauthClientDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;
import org.mapstruct.ReportingPolicy;

/**
 * 客户端对象转换器
 */
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface IOAuthConverter {

    /**
     * 系统客户端转换为传输对象
     *
     * @param entity 实体
     * @return 登录用户页面实体
     */
    SysOauthClientDTO entity2OAuth2Client(SysOauthClient entity);

}